def countChar(s, ch, index=0):
    if index >= len(s):
        return 0
    elif s[index] == ch:
        return 1 + countChar(s, ch, index + 1)
    else:
        return countChar(s, ch, index + 1)